package com.yanzhenjie.andserver.sample.controller.auth.vo;

import java.util.List;

/**
 * 作者: Tao
 * 日期: 2023/2/20
 * 时间: 16:34
 * 描述: 登录鉴权挑战返回实体
 */
public class ChallengeVo {

    /**
     * 请求的凭证 必须
     */
    private String session_id;

    /**
     * 32位随机数 必须
     */
    private String challenge;

    /**
     * 32、64或128位UUID或随机数 必须
     */
    private String salt;

    private List<Link> links;

    public String getSession_id() {
        return session_id;
    }

    public void setSession_id(String session_id) {
        this.session_id = session_id;
    }

    public String getChallenge() {
        return challenge;
    }

    public void setChallenge(String challenge) {
        this.challenge = challenge;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public List<Link> getLinks() {
        return links;
    }

    public void setLinks(List<Link> links) {
        this.links = links;
    }

    @Override
    public String toString() {
        return "ChallengeVo{" +
                "session_id='" + session_id + '\'' +
                ", challenge='" + challenge + '\'' +
                ", salt='" + salt + '\'' +
                ", links=" + links +
                '}';
    }

    public static class Link {
        private String rel;
        private String href;

        public String getRel() {
            return rel;
        }

        public void setRel(String rel) {
            this.rel = rel;
        }

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        @Override
        public String toString() {
            return "Link{" +
                    "rel='" + rel + '\'' +
                    ", href='" + href + '\'' +
                    '}';
        }
    }
}
